package com.springcloud.consumer01.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ribbon负载均衡策略修改
 */
@Configuration
public class MyRule {

    @Bean
    public IRule iRule() {
        return new WeightedResponseTimeRule();
    }

}
